package tool

import "go-api-template/service"

type SortLink struct {
	ID  int    `json:"id" gorm:"primary_key"`
	K   string `gorm:"column:k;"`
	Url string `gorm:"column:url;"`
}

func (SortLink) TableName() string {
	return "tool_sort_link"
}

func Init() {
	err := service.DB.AutoMigrate(
		&SortLink{},
	)
	if err != nil {
		service.Log.Error(err.Error())
	}
}
